@echo off
mkdir 7zip
mkdir files
mkdir tmp
set sourcePack="..\..\javasrc\RilegoSingleJar\target\Rilego.jar"
set destPack=".\files\rilego0.jar"
set tmpPath=.\tmp
set cmp=".\7zip\7za"
Echo "Copying the launcher"
copy ..\launcher\rilego.exe .\files\
Echo "Preparing jar file"
echo x %sourcePack% -o%tmpPath%
%cmp% x %sourcePack% -o%tmpPath%
del %destPack%
%cmp% a -tzip -mx=0 %destPack% %tmpPath%\*
echo cleaning up
rd /s/q tmp
pause